<template>
  <div>
    <div class="header">
      <van-icon class="arrow-left" name="arrow-left" @click="goBack" />
      <span>动态</span>
    </div>
    <div class="collectShow" v-for="(item, index) in publishList" :key="index">
      {{ item.text }}
    </div>
  </div>
</template>

<script>
import axios from "axios";
export default {
  data() {
    return {
      flagE: true,
      publishList: [
        { text: "动态1" },
        { text: "动态2" },
        { text: "动态3" },
        { text: "动态4" },
        { text: "动态5" },
      ],
    };
  },
  mounted() {
    // 请求收藏信息的接口
    // let getCollectAPI = "/api/dynamic/ownlist";
    // axios.get(getCollectAPI).then((res) => {
    //   this.collectList = res;
    // });
  },
  methods: {
    // 返回
    goBack() {
      this.$router.back();
    },
  },
};
</script>

<style lang="scss" scoped>
.header {
  text-align: center;
  margin-top: 36px;
  margin-bottom: 70px;
  .arrow-left {
    position: absolute;
    left: 0px;
    font-size: 48px;
  }
  span {
    font-size: 40px;
  }
}
.collectShow {
  width: 594px;
  margin-left: 88px;
  height: 76px;
  border: 1px solid #999;
  font-size: 36px;
  border: solid 1px rgb(164, 164, 164);
  margin-bottom: 10px;
  background-color: #efefef;
  margin-bottom: 48px;
  font-size: 28px;
  line-height: 76px;
}
</style>
